package com.costaccounting.base.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.costaccounting.common.annotation.Excel;
import com.costaccounting.common.core.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 项目管理对象 zs_item
 *
 * @author H
 * @date 2021-11-06
 */
public class ZsItem extends BaseEntity {

    private static final long serialVersionUID = 1L;
    private List<ZsItemCategoryConfig> buildingListData;

    public List<ZsItemCategoryConfig> getBuildingListData() {
        return buildingListData;
    }

    public void setBuildingListData(List<ZsItemCategoryConfig> buildingListData) {
        this.buildingListData = buildingListData;
    }

    /**
     * 类目组
     */
//    private Long[] categoryIdList;
    private List<List<Long>> categoryIdList = new ArrayList<List<Long>>();
    /**
     * 楼号组
     */
    private List<Long> buildingIdList;
    /**
     * ID
     */
    private Long id;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    private String name;

    public String getCategoryList() {
        return categoryList;
    }

    public void setCategoryList(String categoryList) {
        this.categoryList = categoryList;
    }

    /**
     * 使用类目集合(仅最后一级）
     */
    private String categoryIds;
    private String categoryList;

    /**
     * 包含的楼号
     */
    @Excel(name = "包含的楼号")
    private String buildingIds;

    /**
     * 负责人账号
     */
    @Excel(name = "负责人账号")
    private String leaderCode;

    /**
     * 负责人名称
     */
    @Excel(name = "负责人名称")
    private String leaderName;

    /**
     * 项目状态（0进行中 1已完成）
     */
    private String itemStatus;

    /**
     * 帐号状态（0正常 1停用）
     */
    private String status;


    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public List<List<Long>> getCategoryIdList() {
        return categoryIdList;
    }

    public void setCategoryIdList(List<List<Long>> categoryIdList) {
        this.categoryIdList = categoryIdList;
    }

    public List<Long> getBuildingIdList() {
        return buildingIdList;
    }

    public void setBuildingIdList(List<Long> buildingIdList) {
        this.buildingIdList = buildingIdList;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setCategoryIds(String categoryIds) {
        this.categoryIds = categoryIds;
    }

    public String getCategoryIds() {
        return categoryIds;
    }

    public void setBuildingIds(String buildingIds) {
        this.buildingIds = buildingIds;
    }

    public String getBuildingIds() {
        return buildingIds;
    }

    public void setLeaderCode(String leaderCode) {
        this.leaderCode = leaderCode;
    }

    public String getLeaderCode() {
        return leaderCode;
    }

    public void setLeaderName(String leaderName) {
        this.leaderName = leaderName;
    }

    public String getLeaderName() {
        return leaderName;
    }

    public String getItemStatus() {
        return itemStatus;
    }

    public void setItemStatus(String itemStatus) {
        this.itemStatus = itemStatus;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("categoryIds", getCategoryIds())
                .append("categoryList",getCategoryList())
                .append("buildingIds", getBuildingIds())
                .append("leaderCode", getLeaderCode())
                .append("leaderName", getLeaderName())
                .append("itemStatus", getItemStatus())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
